package com.miyu.system.pojo.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;

/**
 * 系统任务
 * @author longm
 * @date 2023/01/04
 */
@ApiModel(value = "定时任务",description = "")
@Data
@Entity
@Table(name="sys_task")
public class SysTask implements Serializable,Cloneable{
    /** 主键;主键 */
    @Id
    @ApiModelProperty(name = "主键",notes = "主键")
    @Column(name = "task_id", nullable = false, length =32 )
    private String taskId ;
    /** 任务分组;任务分组 */
    @ApiModelProperty(name = "任务分组",notes = "任务分组")
    @Column(name = "group_id", nullable = true, length =32 )
    private String groupId ;
    /** 任务名称;任务名称 */
    @ApiModelProperty(name = "任务名称",notes = "任务名称")
    @Column(name = "task_name", nullable = true, length =50 )
    private String taskName ;
    /** 调用类型;调用类型 */
    @ApiModelProperty(name = "调用类型",notes = "调用类型")
    @Column(name = "task_type", nullable = false, length =10 )
    private String taskType ;
    /** 执行时间;执行时间 */
    @ApiModelProperty(name = "执行时间",notes = "执行时间")
    @Column(name = "task_cron", nullable = true, length =20 )
    private String taskCron ;
    /** 任务URL;任务URL */
    @ApiModelProperty(name = "任务URL",notes = "任务URL")
    @Column(name = "task_url", nullable = false, length =200 )
    private String taskUrl ;
    /** 调用参数;调用参数 */
    @ApiModelProperty(name = "调用参数",notes = "调用参数")
    @Column(name = "task_param", nullable = true, length =500 )
    private String taskParam ;
    /** 执行顺序;执行顺序 */
    @ApiModelProperty(name = "执行顺序",notes = "执行顺序")
    @Column(name = "task_num", nullable = true, length =10 )
    private int taskNum ;
    /** 备注;备注 */
    @ApiModelProperty(name = "备注",notes = "备注")
    @Column(name = "task_mome", nullable = true, length =900 )
    private String taskMome ;
}